<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/home.css" rel="stylesheet" type="text/css">

<title>订单列表</title>
</head>
<body>
<%@ include file="../common/header.jsp" %>

<div>

<h3>我的订单列表</h3>
<div>
<p>
	<span>订单号 --</span>
	<span>购买时间 --</span>
	<span>订单状态 --</span>
	<span>数量 --</span>
	<span>金额</span>

</p>
</div>
<hr style="border-style: dotted none none none">



<ul>
<c:forEach items="${orders}" var="order">
<li>
		<p><p>
		
		<p>
			<a href="<%=request.getContextPath()%>/order/${order.id}.htm">${order.id}
			<span>${order.createTime}</span>
			<c:choose>
				<c:when test="${order.status eq 1}"><span>已付款</span></c:when>
				<c:when test="${order.status eq 2}"><span>未付款</span></c:when>
				<c:when test="${order.status eq 0}"><span>已取消</span></c:when>
			</c:choose>
			<span>${order.totalNum}</span>
			<span>￥${order.totalAmount}</span>
			</a>
		</p>

</li>
<hr style="border-style: dotted none none none">
</c:forEach>
</ul>
</div>


</body>
</html>